﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="providermanagement.ascx.cs"
    Inherits="QuickDev.Web.App.Administration.Controls.Configuration.providermanagement" %>
<%@ Register Assembly="QuickDev.ServerControls" Namespace="QuickDev.ServerControls"
    TagPrefix="QuickDev" %>
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<div id="mainContentRegion">
    <div id="admin_centercontent">
        <div class="sectionHeader">
            <QuickDev:Label ID="lblProviderManagement" runat="server" /></div>
        <br />
        <QuickDev:Panel ID="pnlProviderList" runat="server">
            <br />
            <QuickDev:DataGrid ID="dgProviders" runat="server" AutoGenerateColumns="false" SkinID="adminDataGrid">
                <Columns>
                    <asp:TemplateColumn ItemStyle-HorizontalAlign="center">
                        <ItemTemplate>
                            <QuickDev:LinkButton ID="lbEdit" runat="server" CommandName="Edit" CommandArgument='<%# Eval( "ProviderId") %>'
                                OnCommand="lbEdit_Click" CausesValidation="false" />
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:BoundColumn DataField="Name" />
                    <asp:BoundColumn DataField="ConfigurationControlPath" />
                    <asp:TemplateColumn ItemStyle-HorizontalAlign="center">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbStatus" runat="server" CommandName='<%# Eval("Status") %>'
                                CommandArgument='<%# Eval("ProviderId") %>' OnCommand="lbStatus_Click" CausesValidation="false" />
                        </ItemTemplate>
                    </asp:TemplateColumn>
                </Columns>
            </QuickDev:DataGrid>
        </QuickDev:Panel>
        <br />
        <QuickDev:Panel ID="pnlProviderDetails" runat="server">
            <br />
            <asp:Label ID="lblProviderId" runat="server" Visible="false" />
            <QuickDev:Label ID="lblName" runat="server" CssClass="label" /><br />
            <asp:TextBox ID="txtName" runat="server" CssClass="longtextbox" />&nbsp;
            <QuickDev:HelpLink ID="hlProviderNameHelp" runat="server" NavigateUrl="javascript:void(0);"/>
            <br />
            <br />
            <div class="verticalalign">
                <QuickDev:Label ID="lblDescription" runat="server" CssClass="label" />&nbsp;
                <QuickDev:HelpLink ID="hlProviderDescriptionHelp" runat="server" NavigateUrl="javascript:void(0);"/>
            </div>
            <FCKeditorV2:FCKeditor ID="txtDescription" BasePath="~/FCKeditor/" runat="server"
                Height="200" Width="100%" UseBROnCarriageReturn="true" ToolbarStartExpanded="false" />
            <br />
            <br />
            <QuickDev:Label ID="lblConfigurationControlPath" runat="server" CssClass="label" /><br />
            <asp:TextBox ID="txtConfigurationControlPath" runat="server" CssClass="longtextbox" />&nbsp;
            <QuickDev:HelpLink ID="hlProviderConfigurationControlPathHelp" runat="server" NavigateUrl="javascript:void(0);" />
            <br />
            <br />
            <div class="eventContainer">
                <QuickDev:Button ID="btnSave" runat="server" CssClass="button" OnClick="btnSave_Click" />
                <QuickDev:Button ID="btnReset" runat="server" OnClick="btnReset_Click" CssClass="button"
                    CausesValidation="false" />
            </div>
            <QuickDev:RequiredFieldValidator ID="rfvProviderName" runat="server" Display="None" ControlToValidate="txtName" />
            <QuickDev:RequiredFieldValidator ID="rfvConfigurationControlPath" runat="server" Display="None"
                ControlToValidate="txtConfigurationControlPath" />
        </QuickDev:Panel>
    </div>
</div>
